%HERE YOU MUST FIRST PUT rep=1 AND THEN rep=500 RIGHT AFTER THAN with all
%other inputs the same (becasue it saves the big variables and then loads them for the rep=500; when everthing is zero (exept rep of course) it's
%baseline case
% FIGURE_GENERATE(rep,ww,rollover_subset,size_subset,labor,one_step,controls,chol,...
%     bcdz,jq,cmr,mpt,time_fe,near_var,nonlin,ni,ser,cogs,markup,ind,fe)
clear
% time_fe=0;
%fe
%% FIGURE_GENERATE(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1);
%   FIGURE_GENERATE(500,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1);
%BASELINE
%% FIGURE_GENERATE(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
   FIGURE_GENERATE(500,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
% IND
%% FIGURE_GENERATE(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0);
%  FIGURE_GENERATE(500,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0);
% % MARKUP
% % FIGURE_GENERATE(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0);
%  FIGURE_GENERATE(500,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0);
% % COGS
% % FIGURE_GENERATE(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0);
%     FIGURE_GENERATE(500,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0); 
% % SER
% % FIGURE_GENERATE(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0);
%  FIGURE_GENERATE(500,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0);
% % NI
% % FIGURE_GENERATE(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0);
%  FIGURE_GENERATE(500,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0); 
% % NONLIN
% % FIGURE_GENERATE(1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0);
%  FIGURE_GENERATE(500,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0); 
% % NEAR VAR
% % FIGURE_GENERATE(1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0);
% FIGURE_GENERATE(500,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0);
% % TIME FE
% %% FIGURE_GENERATE(1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0);YOU DON'T % NEED THIS ROW FOR TIME FE
%  FIGURE_GENERATE(500,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0); 
% %MPT    
% % FIGURE_GENERATE(1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0);
%  FIGURE_GENERATE(500,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0);
% %CMR
% % FIGURE_GENERATE(1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0);
%  FIGURE_GENERATE(500,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0);
% % JQ
% % FIGURE_GENERATE(1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0);
%  FIGURE_GENERATE(500,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0);
% % BCDZ
% % FIGURE_GENERATE(1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0);
%  FIGURE_GENERATE(500,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0);
% % CHOL
% % FIGURE_GENERATE(1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0);
%  FIGURE_GENERATE(500,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0);
% %CONTROLS
% % FIGURE_GENERATE(1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
%  FIGURE_GENERATE(500,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
% %ONE STEP
% % FIGURE_GENERATE(1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
%   FIGURE_GENERATE(500,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
% % LABOR
% % FIGURE_GENERATE(1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
%  FIGURE_GENERATE(500,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
%SIZE SUBSET
% %  FIGURE_GENERATE(1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
%   FIGURE_GENERATE(500,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
% 
% %rollover risk subset
% % FIGURE_GENERATE(1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
%  FIGURE_GENERATE(500,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
%%WW 
%% FIGURE_GENERATE(1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
%  FIGURE_GENERATE(500,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);

%LABOR ROBUSTNESS
%%ONE STEP AND LABOR
%%FIGURE_GENERATE(1,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
 FIGURE_GENERATE(500,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
%%NEAR VAR AND LABOR
%% FIGURE_GENERATE(1,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0);
 FIGURE_GENERATE(500,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0);
%% BCDZ AND LABOR
%% FIGURE_GENERATE(1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0);
 FIGURE_GENERATE(500,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0);
%% JQ AND LABOR
%% FIGURE_GENERATE(1,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0);
 FIGURE_GENERATE(500,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0);
%% CMR AND LABOR
%% FIGURE_GENERATE(1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0);
 FIGURE_GENERATE(500,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0);
%% MPT AND LABOR
%% FIGURE_GENERATE(1,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0);
 FIGURE_GENERATE(500,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0);
%% CHOL AND LABOR
%% FIGURE_GENERATE(1,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0);
 FIGURE_GENERATE(500,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0);
%% NONLIN AND LABOR
%% FIGURE_GENERATE(1,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0);
 FIGURE_GENERATE(500,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0);
  